package cn.lanqiao.springboot.util;


import cn.lanqiao.springboot.vo.UserVO;

public class CurrentUserUtil {
    static ThreadLocal<UserVO> threadLocal = new ThreadLocal<>();

    public static void set(UserVO user) {
        threadLocal.set(user);
    }

    public static UserVO get() {
        return threadLocal.get();
    }
}
